/**
  ******************************************************************************
  * @file    test.cpp
  * @brief   This file provides test example for different modules.		
  * @warning 
  *          - At least C++11 is required.														 
  ******************************************************************************
  */
/* Includes ------------------------------------------------------------------*/
#include <unistd.h>
#include "test.h"

/* Functions -----------------------------------------------------------------*/
int main(int argc, char *argv[])
{
    int arg;

    if(argc == 1)
        printf("[ERROR] Not find input argument, code exit. \r\n");

    for(arg = 1; arg < argc; arg++)
    {
        if(argv[arg][0] == '-')
        {
            switch (argv[arg][1])
            {
            case 'g':
                test_gaitTraj();
                break;
            case 'm':
                test_matplot();
                break;
            case 'f':
                test_footPlacement();
                break;
            case 't':
                test_gaitTransition_two();
                break;
            default:
                printf("[ERROR] Input argument '%s' is invalid, code exit. \r\n", argv[arg]);
                exit(0);
                break;
            }
        }
        else
        {
            printf("[ERROR] Not find matched argument, code exit. \r\n");
            exit(0);
        }
    }
    exit(0);
}









/************************* END-OF-FILE SCUT-ROBOTLAB **************************/